let express = require('express')
let router = express.Router()
let baseURL = require('../../node_module/baseData.js').baseURL

let images = [
    baseURL + 'images/G_1.jpg',
    baseURL + 'images/G_2.jpg',
    baseURL + 'images/G_3.jpg',
    baseURL + 'images/G_4.jpg',
]
let files = [
    baseURL + 'files/zhang_ting.fbx',
    baseURL + 'files/jjj.fbx',
]

// 获取图片地址
router.get('/image', function (req, resp, next) {
    console.log('req.query', req.query)
    resp.send({images, files})
})

// 修改用户状态
router.put('/put', function (req, resp, next) {
    console.log('req.query', req.query)
    resp.send('put')
})

// 添加用户管理员
router.post('/post', function (req, resp, next) {
    console.log('req.body', req.body)
    resp.send('post')
})

// 删除用户管理员
router.delete('/delete', function (req, resp, next) {
    console.log('req.query', req.query)
    resp.send('delete')
})


module.exports = router
